package vn.candyapp.qlct.database.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class TransactionTypeList implements Serializable {

	private static final long serialVersionUID = 1L;
	private ArrayList<TransactionType> transactionTypeList = new ArrayList<TransactionType>();
	
	public TransactionType getTransactionTypeAtPosition(int position) {
		if (position < transactionTypeList.size())
			return transactionTypeList.get(position);
		return null;
	}
	
	public ArrayList<TransactionType> getTransactionTypeList() {
		return transactionTypeList;
	}
	
	public void setTransactionTypeList(ArrayList<TransactionType> transactionTypeList) {
		this.transactionTypeList = transactionTypeList;
	}
	
	public List<String> getTransactionTypeName() {
		List<String> data = new ArrayList<String>();
		for(TransactionType item : transactionTypeList) {
			data.add(item.getName());
		}
		return data;
	}
	
	
}
